<?php 
$db = new DBManager ( 'localhost', 'root', '', 'iumus' );
$query="SELECT id, title, rating, votes FROM movie WHERE `runtime` <> 'N/A' ORDER BY votes DESC LIMIT 0 , 30";
$result=$db->executeQuery ($query);
while($row=mysql_fetch_array($result)){
	$rating = explode (".", $row['rating']);
	$addFS = $rating[0]* 2;
	$font = "style='font-size:".$addFS."px";
	echo '<a href="'.'infoFilm.php?id='.$row['id'].'"'.$font.'\'>'.$row['title'].'</a>, ';
}
?>